//package com.moyun.dict.service.impl;
//
//
//import com.moyun.dict.cache.DictDataCache;
//import com.moyun.dict.domain.vo.DictDataOptions;
//import lombok.RequiredArgsConstructor;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Lazy;
//import org.springframework.stereotype.Service;
//
//import java.util.Collection;
//import java.util.List;
//
///**
// * 功能描述: 字典数据 服务实现 <br/>
// */
//@Service
//@RequiredArgsConstructor(onConstructor_ = {@Autowired, @Lazy})
//public class DictDataServiceImpl extends ServiceImpl<DictDataMapper, DictDataEntity> implements IDictDataService {
//
//    @Override
//    public List<DictDataOptions> selectDataOptionsByCode(String dictType) {
//        return DictDataCache.get(dictType);
//    }
//
//    @Override
//    public List<DictDataOptions> selectDataOptionsByLoadType(String loadType, String dictType) {
//        return DictDataCache.get(loadType, dictType);
//    }
//
//    @Override
//    public List<DictDataEntity> selectListByCode(String dictType) {
//        return lambdaQuery().eq(DictDataEntity::getTypeCode, dictType)
//                .eq(DictDataEntity::getEnable, YesOrNoEnum.YES.getCode()).list();
//    }
//
//    @Override
//    public List<DictDataEntity> selectListByCodes(Collection<String> dictTypeList) {
//        return lambdaQuery().in(DictDataEntity::getTypeCode, dictTypeList)
//                .eq(DictDataEntity::getEnable, YesOrNoEnum.YES.getCode()).list();
//    }
//
//}
